package cn.backpackerxl.easyJDBC.util;

/**
 * @Author: backpackerxl
 * CreateTime: 2022/5/3
 * FileName: BuildSQL
 **/
public final class BuildSQL {
    private final String name;

    public BuildSQL(String name) {
        this.name = name;
    }

    public BuildSQL prefix(String pre) {
        return new BuildSQL(pre.trim() + this.name);
    }

    public BuildSQL suffix(String suf) {
        return new BuildSQL(this.name + suf.trim());
    }

    public String getName() {
        return name;
    }
}
